package cn;

public class Bank {
	double recton(double m, double n) {
		double yearlv;
		double lixi;
		double benxi = 0;
		if (n == 1) {
			yearlv = 0.0225;
			lixi = m * n * yearlv;
			benxi = m + lixi;
		} else if (n == 2) {
			yearlv = 0.027;
			lixi = m * n * yearlv;
			benxi = m + lixi;
		} else if (n == 3) {
			yearlv = 0.0324;
			lixi = m * n * yearlv;
			benxi = m + lixi;
		} else if (n == 5) {
			yearlv = 0.036;
			lixi = m * n * yearlv;
			benxi = m + lixi;
		}
		return benxi;

	}

	public static void main(String[] args) {
		Bank b = new Bank();
		double a = b.recton(10000, 3);
		System.out.println("输出本息" + a);
	}

}
